{include file="admin@public/header"/}

<style>
    #matchCon { width: 420px; }
</style>

<div class="container" style="margin:20px 20px 0;">
    <div class="mod-search m0 cf" style="padding-right:0;">
      <div class="fl">
        <ul class="ul-inline">
          <li>
            <input type="text" id="matchCon" class="ui-input" disabled value="1002 15年_500ml*6">
          </li>
          <li class="dn"><a class="ui-btn mrb" id="search">查询</a><a class="ui-btn" id="refresh">刷新</a></li>
        </ul>
      </div>
    </div>
    <div class="grid-wrap">
      <table id="grid">
      </table>
      <div id="page"></div>
    </div>
</div>
<input type="hidden" name="id" id="id" value="{$id}" >
<input type="hidden" name="unit_id" id="unit_id" value="{$unit_id}" >
<script>
    var id = $("#id").val();
    var unit_id = $("#unit_id").val();
    $(document).ready(function () {
        $("#grid").jqGrid({
			url: "/scm/purchase/inven.html?ajax=100&id="+id+'&'+'unit_id'+'='+unit_id,
            // postData:{
            //     'ajax':100,
            //     'id':id,
            // },
			datatype: "json",//数据来源，本地数据（local，json,jsonp,xml等）
			height: '90%',//高度，表格高度。可为数值、百分比或'auto'
			//width: Public.setGrid().w,
			//height: Public.setGrid().h,
            colNames: [ "仓库名称", "数量"],
            colModel: [
                { name: 'name', index: 'name asc', width: 201 },
                { name: 'number', index: 'name asc', width: 201, align:'center' },
            ],
        })
    });
</script>


{include file="admin@public/footer"/}